package cn.tedu.ivos.geofence.service.Impl;

import cn.tedu.ivos.geofence.mapper.GeofenceMapper;
import cn.tedu.ivos.geofence.pojo.dto.GeofenceQuery;
import cn.tedu.ivos.geofence.pojo.entity.Geofence;
import cn.tedu.ivos.geofence.pojo.vo.GeofenceVO;
import cn.tedu.ivos.geofence.service.GeofenceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class GeofenceServiceImpl implements GeofenceService {
    private static final Logger log = LoggerFactory.getLogger(GeofenceServiceImpl.class);
    @Autowired
    GeofenceMapper geofenceMapper;
    @Override
    public List<GeofenceVO> selectGeofence(GeofenceQuery geofenceQuery) {
       log.debug("查询结果是：geofenceQuery={}",geofenceQuery);
       List<GeofenceVO> list =geofenceMapper.selectGeofence(geofenceQuery);
       return list;
    }
}
